package com.hyf.service.impl;

import com.hyf.dao.AccountDao;
import com.hyf.service.AccountService;

public class AccountServiceImpl implements AccountService {
    private AccountDao accountDao;
    public  void setAccountDao(AccountDao accountDao) {
        this.accountDao = accountDao;
    }
    public  void transfer(String outName,String inName,double money) {
        accountDao.updateSubMoneyByName(outName, money);
      //  System.out.println(1/0);
        accountDao.updateAddMoneyByName(inName, money);
    }

}
